using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Runtime.Serialization;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
namespace HKB.Data.Dal
{
	[GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"), HelpKeyword("vs.data.DataSet"), DesignerCategory("code"), ToolboxItem(true), System.Xml.Serialization.XmlRoot("S_Ad"), System.Xml.Serialization.XmlSchemaProvider("GetTypedDataSetSchema")]
	[System.Serializable]
	public class S_Ad : DataSet
	{
		public delegate void HL_Advertisement1RowChangeEventHandler(object sender, S_Ad.HL_Advertisement1RowChangeEvent e);
		[GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"), System.Xml.Serialization.XmlSchemaProvider("GetTypedTableSchema")]
		[System.Serializable]
		public class HL_Advertisement1DataTable : DataTable, System.Collections.IEnumerable
		{
			private DataColumn columnADID;
			private DataColumn columnUserID;
			private DataColumn columnZoneID;
			private DataColumn columnADType;
			private DataColumn columnADName;
			private DataColumn columnImgUrl;
			private DataColumn columnImgWidth;
			private DataColumn columnImgHeight;
			private DataColumn columnFlashWmode;
			private DataColumn columnADIntro;
			private DataColumn columnLinkUrl;
			private DataColumn columnLinkTarget;
			private DataColumn columnLinkAlt;
			private DataColumn columnPriority;
			private DataColumn columnSetting;
			private DataColumn columnCountView;
			private DataColumn columnViews;
			private DataColumn columnCountClick;
			private DataColumn columnClicks;
			private DataColumn columnPassed;
			private DataColumn columnEndTime;
			public event S_Ad.HL_Advertisement1RowChangeEventHandler HL_Advertisement1RowChanging;
			public event S_Ad.HL_Advertisement1RowChangeEventHandler HL_Advertisement1RowChanged;
			public event S_Ad.HL_Advertisement1RowChangeEventHandler HL_Advertisement1RowDeleting;
			public event S_Ad.HL_Advertisement1RowChangeEventHandler HL_Advertisement1RowDeleted;
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn ADIDColumn
			{
				get
				{
					return this.columnADID;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn UserIDColumn
			{
				get
				{
					return this.columnUserID;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn ZoneIDColumn
			{
				get
				{
					return this.columnZoneID;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn ADTypeColumn
			{
				get
				{
					return this.columnADType;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn ADNameColumn
			{
				get
				{
					return this.columnADName;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn ImgUrlColumn
			{
				get
				{
					return this.columnImgUrl;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn ImgWidthColumn
			{
				get
				{
					return this.columnImgWidth;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn ImgHeightColumn
			{
				get
				{
					return this.columnImgHeight;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn FlashWmodeColumn
			{
				get
				{
					return this.columnFlashWmode;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn ADIntroColumn
			{
				get
				{
					return this.columnADIntro;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn LinkUrlColumn
			{
				get
				{
					return this.columnLinkUrl;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn LinkTargetColumn
			{
				get
				{
					return this.columnLinkTarget;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn LinkAltColumn
			{
				get
				{
					return this.columnLinkAlt;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn PriorityColumn
			{
				get
				{
					return this.columnPriority;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn SettingColumn
			{
				get
				{
					return this.columnSetting;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn CountViewColumn
			{
				get
				{
					return this.columnCountView;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn ViewsColumn
			{
				get
				{
					return this.columnViews;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn CountClickColumn
			{
				get
				{
					return this.columnCountClick;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn ClicksColumn
			{
				get
				{
					return this.columnClicks;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn PassedColumn
			{
				get
				{
					return this.columnPassed;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataColumn EndTimeColumn
			{
				get
				{
					return this.columnEndTime;
				}
			}
			[Browsable(false), System.Diagnostics.DebuggerNonUserCode]
			public int Count
			{
				get
				{
					return base.Rows.Count;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public S_Ad.HL_Advertisement1Row this[int index]
			{
				get
				{
					return (S_Ad.HL_Advertisement1Row)base.Rows[index];
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public HL_Advertisement1DataTable()
			{
				base.TableName = "HL_Advertisement1";
				this.BeginInit();
				this.InitClass();
				this.EndInit();
			}
			[System.Diagnostics.DebuggerNonUserCode]
			internal HL_Advertisement1DataTable(DataTable table)
			{
				base.TableName = table.TableName;
				if (table.CaseSensitive != table.DataSet.CaseSensitive)
				{
					base.CaseSensitive = table.CaseSensitive;
				}
				if (table.Locale.ToString() != table.DataSet.Locale.ToString())
				{
					base.Locale = table.Locale;
				}
				if (table.Namespace != table.DataSet.Namespace)
				{
					base.Namespace = table.Namespace;
				}
				base.Prefix = table.Prefix;
				base.MinimumCapacity = table.MinimumCapacity;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected HL_Advertisement1DataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context)
			{
				this.InitVars();
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void AddHL_Advertisement1Row(S_Ad.HL_Advertisement1Row row)
			{
				base.Rows.Add(row);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public S_Ad.HL_Advertisement1Row AddHL_Advertisement1Row(int UserID, string ZoneID, int ADType, string ADName, string ImgUrl, int ImgWidth, int ImgHeight, int FlashWmode, string ADIntro, string LinkUrl, int LinkTarget, string LinkAlt, int Priority, string Setting, bool CountView, int Views, bool CountClick, int Clicks, bool Passed, System.DateTime EndTime)
			{
				S_Ad.HL_Advertisement1Row hL_Advertisement1Row = (S_Ad.HL_Advertisement1Row)base.NewRow();
				hL_Advertisement1Row.ItemArray = new object[]
				{
					null,
					UserID,
					ZoneID,
					ADType,
					ADName,
					ImgUrl,
					ImgWidth,
					ImgHeight,
					FlashWmode,
					ADIntro,
					LinkUrl,
					LinkTarget,
					LinkAlt,
					Priority,
					Setting,
					CountView,
					Views,
					CountClick,
					Clicks,
					Passed,
					EndTime
				};
				base.Rows.Add(hL_Advertisement1Row);
				return hL_Advertisement1Row;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public S_Ad.HL_Advertisement1Row FindByADID(int ADID)
			{
				return (S_Ad.HL_Advertisement1Row)base.Rows.Find(new object[]
				{
					ADID
				});
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public virtual System.Collections.IEnumerator GetEnumerator()
			{
				return base.Rows.GetEnumerator();
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public override DataTable Clone()
			{
				S_Ad.HL_Advertisement1DataTable hL_Advertisement1DataTable = (S_Ad.HL_Advertisement1DataTable)base.Clone();
				hL_Advertisement1DataTable.InitVars();
				return hL_Advertisement1DataTable;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected override DataTable CreateInstance()
			{
				return new S_Ad.HL_Advertisement1DataTable();
			}
			[System.Diagnostics.DebuggerNonUserCode]
			internal void InitVars()
			{
				this.columnADID = base.Columns["ADID"];
				this.columnUserID = base.Columns["UserID"];
				this.columnZoneID = base.Columns["ZoneID"];
				this.columnADType = base.Columns["ADType"];
				this.columnADName = base.Columns["ADName"];
				this.columnImgUrl = base.Columns["ImgUrl"];
				this.columnImgWidth = base.Columns["ImgWidth"];
				this.columnImgHeight = base.Columns["ImgHeight"];
				this.columnFlashWmode = base.Columns["FlashWmode"];
				this.columnADIntro = base.Columns["ADIntro"];
				this.columnLinkUrl = base.Columns["LinkUrl"];
				this.columnLinkTarget = base.Columns["LinkTarget"];
				this.columnLinkAlt = base.Columns["LinkAlt"];
				this.columnPriority = base.Columns["Priority"];
				this.columnSetting = base.Columns["Setting"];
				this.columnCountView = base.Columns["CountView"];
				this.columnViews = base.Columns["Views"];
				this.columnCountClick = base.Columns["CountClick"];
				this.columnClicks = base.Columns["Clicks"];
				this.columnPassed = base.Columns["Passed"];
				this.columnEndTime = base.Columns["EndTime"];
			}
			[System.Diagnostics.DebuggerNonUserCode]
			private void InitClass()
			{
				this.columnADID = new DataColumn("ADID", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnADID);
				this.columnUserID = new DataColumn("UserID", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnUserID);
				this.columnZoneID = new DataColumn("ZoneID", typeof(string), null, MappingType.Element);
				base.Columns.Add(this.columnZoneID);
				this.columnADType = new DataColumn("ADType", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnADType);
				this.columnADName = new DataColumn("ADName", typeof(string), null, MappingType.Element);
				base.Columns.Add(this.columnADName);
				this.columnImgUrl = new DataColumn("ImgUrl", typeof(string), null, MappingType.Element);
				base.Columns.Add(this.columnImgUrl);
				this.columnImgWidth = new DataColumn("ImgWidth", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnImgWidth);
				this.columnImgHeight = new DataColumn("ImgHeight", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnImgHeight);
				this.columnFlashWmode = new DataColumn("FlashWmode", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnFlashWmode);
				this.columnADIntro = new DataColumn("ADIntro", typeof(string), null, MappingType.Element);
				base.Columns.Add(this.columnADIntro);
				this.columnLinkUrl = new DataColumn("LinkUrl", typeof(string), null, MappingType.Element);
				base.Columns.Add(this.columnLinkUrl);
				this.columnLinkTarget = new DataColumn("LinkTarget", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnLinkTarget);
				this.columnLinkAlt = new DataColumn("LinkAlt", typeof(string), null, MappingType.Element);
				base.Columns.Add(this.columnLinkAlt);
				this.columnPriority = new DataColumn("Priority", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnPriority);
				this.columnSetting = new DataColumn("Setting", typeof(string), null, MappingType.Element);
				base.Columns.Add(this.columnSetting);
				this.columnCountView = new DataColumn("CountView", typeof(bool), null, MappingType.Element);
				base.Columns.Add(this.columnCountView);
				this.columnViews = new DataColumn("Views", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnViews);
				this.columnCountClick = new DataColumn("CountClick", typeof(bool), null, MappingType.Element);
				base.Columns.Add(this.columnCountClick);
				this.columnClicks = new DataColumn("Clicks", typeof(int), null, MappingType.Element);
				base.Columns.Add(this.columnClicks);
				this.columnPassed = new DataColumn("Passed", typeof(bool), null, MappingType.Element);
				base.Columns.Add(this.columnPassed);
				this.columnEndTime = new DataColumn("EndTime", typeof(System.DateTime), null, MappingType.Element);
				base.Columns.Add(this.columnEndTime);
				base.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[]
				{
					this.columnADID
				}, true));
				this.columnADID.AutoIncrement = true;
				this.columnADID.AllowDBNull = false;
				this.columnADID.ReadOnly = true;
				this.columnADID.Unique = true;
				this.columnZoneID.MaxLength = 500;
				this.columnADName.MaxLength = 100;
				this.columnImgUrl.MaxLength = 255;
				this.columnADIntro.MaxLength = 500;
				this.columnLinkUrl.MaxLength = 255;
				this.columnLinkAlt.MaxLength = 255;
				this.columnSetting.MaxLength = 500;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public S_Ad.HL_Advertisement1Row NewHL_Advertisement1Row()
			{
				return (S_Ad.HL_Advertisement1Row)base.NewRow();
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
			{
				return new S_Ad.HL_Advertisement1Row(builder);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected override System.Type GetRowType()
			{
				return typeof(S_Ad.HL_Advertisement1Row);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected override void OnRowChanged(DataRowChangeEventArgs e)
			{
				base.OnRowChanged(e);
				if (this.HL_Advertisement1RowChanged != null)
				{
					this.HL_Advertisement1RowChanged(this, new S_Ad.HL_Advertisement1RowChangeEvent((S_Ad.HL_Advertisement1Row)e.Row, e.Action));
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected override void OnRowChanging(DataRowChangeEventArgs e)
			{
				base.OnRowChanging(e);
				if (this.HL_Advertisement1RowChanging != null)
				{
					this.HL_Advertisement1RowChanging(this, new S_Ad.HL_Advertisement1RowChangeEvent((S_Ad.HL_Advertisement1Row)e.Row, e.Action));
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected override void OnRowDeleted(DataRowChangeEventArgs e)
			{
				base.OnRowDeleted(e);
				if (this.HL_Advertisement1RowDeleted != null)
				{
					this.HL_Advertisement1RowDeleted(this, new S_Ad.HL_Advertisement1RowChangeEvent((S_Ad.HL_Advertisement1Row)e.Row, e.Action));
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			protected override void OnRowDeleting(DataRowChangeEventArgs e)
			{
				base.OnRowDeleting(e);
				if (this.HL_Advertisement1RowDeleting != null)
				{
					this.HL_Advertisement1RowDeleting(this, new S_Ad.HL_Advertisement1RowChangeEvent((S_Ad.HL_Advertisement1Row)e.Row, e.Action));
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void RemoveHL_Advertisement1Row(S_Ad.HL_Advertisement1Row row)
			{
				base.Rows.Remove(row);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs)
			{
				System.Xml.Schema.XmlSchemaComplexType xmlSchemaComplexType = new System.Xml.Schema.XmlSchemaComplexType();
				System.Xml.Schema.XmlSchemaSequence xmlSchemaSequence = new System.Xml.Schema.XmlSchemaSequence();
				S_Ad s_Ad = new S_Ad();
				xs.Add(s_Ad.GetSchemaSerializable());
				System.Xml.Schema.XmlSchemaAny xmlSchemaAny = new System.Xml.Schema.XmlSchemaAny();
				xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
				xmlSchemaAny.MinOccurs = 0m;
				xmlSchemaAny.MaxOccurs = 79228162514264337593543950335m;
				xmlSchemaAny.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
				xmlSchemaSequence.Items.Add(xmlSchemaAny);
				System.Xml.Schema.XmlSchemaAny xmlSchemaAny2 = new System.Xml.Schema.XmlSchemaAny();
				xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
				xmlSchemaAny2.MinOccurs = 1m;
				xmlSchemaAny2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
				xmlSchemaSequence.Items.Add(xmlSchemaAny2);
				System.Xml.Schema.XmlSchemaAttribute xmlSchemaAttribute = new System.Xml.Schema.XmlSchemaAttribute();
				xmlSchemaAttribute.Name = "namespace";
				xmlSchemaAttribute.FixedValue = s_Ad.Namespace;
				xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
				System.Xml.Schema.XmlSchemaAttribute xmlSchemaAttribute2 = new System.Xml.Schema.XmlSchemaAttribute();
				xmlSchemaAttribute2.Name = "tableTypeName";
				xmlSchemaAttribute2.FixedValue = "HL_Advertisement1DataTable";
				xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
				xmlSchemaComplexType.Particle = xmlSchemaSequence;
				return xmlSchemaComplexType;
			}
		}
		[GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
		public class HL_Advertisement1Row : DataRow
		{
			private S_Ad.HL_Advertisement1DataTable tableHL_Advertisement1;
			[System.Diagnostics.DebuggerNonUserCode]
			public int ADID
			{
				get
				{
					return (int)base[this.tableHL_Advertisement1.ADIDColumn];
				}
				set
				{
					base[this.tableHL_Advertisement1.ADIDColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public int UserID
			{
				get
				{
					int result;
					try
					{
						result = (int)base[this.tableHL_Advertisement1.UserIDColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“UserID”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.UserIDColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public string ZoneID
			{
				get
				{
					string result;
					try
					{
						result = (string)base[this.tableHL_Advertisement1.ZoneIDColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“ZoneID”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.ZoneIDColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public int ADType
			{
				get
				{
					int result;
					try
					{
						result = (int)base[this.tableHL_Advertisement1.ADTypeColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“ADType”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.ADTypeColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public string ADName
			{
				get
				{
					string result;
					try
					{
						result = (string)base[this.tableHL_Advertisement1.ADNameColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“ADName”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.ADNameColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public string ImgUrl
			{
				get
				{
					string result;
					try
					{
						result = (string)base[this.tableHL_Advertisement1.ImgUrlColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“ImgUrl”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.ImgUrlColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public int ImgWidth
			{
				get
				{
					int result;
					try
					{
						result = (int)base[this.tableHL_Advertisement1.ImgWidthColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“ImgWidth”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.ImgWidthColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public int ImgHeight
			{
				get
				{
					int result;
					try
					{
						result = (int)base[this.tableHL_Advertisement1.ImgHeightColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“ImgHeight”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.ImgHeightColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public int FlashWmode
			{
				get
				{
					int result;
					try
					{
						result = (int)base[this.tableHL_Advertisement1.FlashWmodeColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“FlashWmode”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.FlashWmodeColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public string ADIntro
			{
				get
				{
					string result;
					try
					{
						result = (string)base[this.tableHL_Advertisement1.ADIntroColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“ADIntro”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.ADIntroColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public string LinkUrl
			{
				get
				{
					string result;
					try
					{
						result = (string)base[this.tableHL_Advertisement1.LinkUrlColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“LinkUrl”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.LinkUrlColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public int LinkTarget
			{
				get
				{
					int result;
					try
					{
						result = (int)base[this.tableHL_Advertisement1.LinkTargetColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“LinkTarget”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.LinkTargetColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public string LinkAlt
			{
				get
				{
					string result;
					try
					{
						result = (string)base[this.tableHL_Advertisement1.LinkAltColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“LinkAlt”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.LinkAltColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public int Priority
			{
				get
				{
					int result;
					try
					{
						result = (int)base[this.tableHL_Advertisement1.PriorityColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“Priority”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.PriorityColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public string Setting
			{
				get
				{
					string result;
					try
					{
						result = (string)base[this.tableHL_Advertisement1.SettingColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“Setting”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.SettingColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool CountView
			{
				get
				{
					bool result;
					try
					{
						result = (bool)base[this.tableHL_Advertisement1.CountViewColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“CountView”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.CountViewColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public int Views
			{
				get
				{
					int result;
					try
					{
						result = (int)base[this.tableHL_Advertisement1.ViewsColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“Views”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.ViewsColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool CountClick
			{
				get
				{
					bool result;
					try
					{
						result = (bool)base[this.tableHL_Advertisement1.CountClickColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“CountClick”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.CountClickColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public int Clicks
			{
				get
				{
					int result;
					try
					{
						result = (int)base[this.tableHL_Advertisement1.ClicksColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“Clicks”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.ClicksColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool Passed
			{
				get
				{
					bool result;
					try
					{
						result = (bool)base[this.tableHL_Advertisement1.PassedColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“Passed”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.PassedColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public System.DateTime EndTime
			{
				get
				{
					System.DateTime result;
					try
					{
						result = (System.DateTime)base[this.tableHL_Advertisement1.EndTimeColumn];
					}
					catch (System.InvalidCastException innerException)
					{
						throw new StrongTypingException("表“HL_Advertisement1”中列“EndTime”的值为 DBNull。", innerException);
					}
					return result;
				}
				set
				{
					base[this.tableHL_Advertisement1.EndTimeColumn] = value;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			internal HL_Advertisement1Row(DataRowBuilder rb) : base(rb)
			{
				this.tableHL_Advertisement1 = (S_Ad.HL_Advertisement1DataTable)base.Table;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsUserIDNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.UserIDColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetUserIDNull()
			{
				base[this.tableHL_Advertisement1.UserIDColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsZoneIDNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.ZoneIDColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetZoneIDNull()
			{
				base[this.tableHL_Advertisement1.ZoneIDColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsADTypeNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.ADTypeColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetADTypeNull()
			{
				base[this.tableHL_Advertisement1.ADTypeColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsADNameNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.ADNameColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetADNameNull()
			{
				base[this.tableHL_Advertisement1.ADNameColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsImgUrlNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.ImgUrlColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetImgUrlNull()
			{
				base[this.tableHL_Advertisement1.ImgUrlColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsImgWidthNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.ImgWidthColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetImgWidthNull()
			{
				base[this.tableHL_Advertisement1.ImgWidthColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsImgHeightNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.ImgHeightColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetImgHeightNull()
			{
				base[this.tableHL_Advertisement1.ImgHeightColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsFlashWmodeNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.FlashWmodeColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetFlashWmodeNull()
			{
				base[this.tableHL_Advertisement1.FlashWmodeColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsADIntroNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.ADIntroColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetADIntroNull()
			{
				base[this.tableHL_Advertisement1.ADIntroColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsLinkUrlNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.LinkUrlColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetLinkUrlNull()
			{
				base[this.tableHL_Advertisement1.LinkUrlColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsLinkTargetNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.LinkTargetColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetLinkTargetNull()
			{
				base[this.tableHL_Advertisement1.LinkTargetColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsLinkAltNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.LinkAltColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetLinkAltNull()
			{
				base[this.tableHL_Advertisement1.LinkAltColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsPriorityNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.PriorityColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetPriorityNull()
			{
				base[this.tableHL_Advertisement1.PriorityColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsSettingNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.SettingColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetSettingNull()
			{
				base[this.tableHL_Advertisement1.SettingColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsCountViewNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.CountViewColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetCountViewNull()
			{
				base[this.tableHL_Advertisement1.CountViewColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsViewsNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.ViewsColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetViewsNull()
			{
				base[this.tableHL_Advertisement1.ViewsColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsCountClickNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.CountClickColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetCountClickNull()
			{
				base[this.tableHL_Advertisement1.CountClickColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsClicksNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.ClicksColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetClicksNull()
			{
				base[this.tableHL_Advertisement1.ClicksColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsPassedNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.PassedColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetPassedNull()
			{
				base[this.tableHL_Advertisement1.PassedColumn] = System.Convert.DBNull;
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public bool IsEndTimeNull()
			{
				return base.IsNull(this.tableHL_Advertisement1.EndTimeColumn);
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public void SetEndTimeNull()
			{
				base[this.tableHL_Advertisement1.EndTimeColumn] = System.Convert.DBNull;
			}
		}
		[GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
		public class HL_Advertisement1RowChangeEvent : System.EventArgs
		{
			private S_Ad.HL_Advertisement1Row eventRow;
			private DataRowAction eventAction;
			[System.Diagnostics.DebuggerNonUserCode]
			public S_Ad.HL_Advertisement1Row Row
			{
				get
				{
					return this.eventRow;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public DataRowAction Action
			{
				get
				{
					return this.eventAction;
				}
			}
			[System.Diagnostics.DebuggerNonUserCode]
			public HL_Advertisement1RowChangeEvent(S_Ad.HL_Advertisement1Row row, DataRowAction action)
			{
				this.eventRow = row;
				this.eventAction = action;
			}
		}
		private S_Ad.HL_Advertisement1DataTable tableHL_Advertisement1;
		private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema;
		[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Content), System.Diagnostics.DebuggerNonUserCode]
		public S_Ad.HL_Advertisement1DataTable HL_Advertisement1
		{
			get
			{
				return this.tableHL_Advertisement1;
			}
		}
		[Browsable(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible), System.Diagnostics.DebuggerNonUserCode]
		public override SchemaSerializationMode SchemaSerializationMode
		{
			get
			{
				return this._schemaSerializationMode;
			}
			set
			{
				this._schemaSerializationMode = value;
			}
		}
		[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), System.Diagnostics.DebuggerNonUserCode]
		public new DataTableCollection Tables
		{
			get
			{
				return base.Tables;
			}
		}
		[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), System.Diagnostics.DebuggerNonUserCode]
		public new DataRelationCollection Relations
		{
			get
			{
				return base.Relations;
			}
		}
		[System.Diagnostics.DebuggerNonUserCode]
		public S_Ad()
		{
			base.BeginInit();
			this.InitClass();
			CollectionChangeEventHandler value = new CollectionChangeEventHandler(this.SchemaChanged);
			base.Tables.CollectionChanged += value;
			base.Relations.CollectionChanged += value;
			base.EndInit();
		}
		[System.Diagnostics.DebuggerNonUserCode]
		protected S_Ad(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context, false)
		{
			if (base.IsBinarySerialized(info, context))
			{
				this.InitVars(false);
				CollectionChangeEventHandler value = new CollectionChangeEventHandler(this.SchemaChanged);
				this.Tables.CollectionChanged += value;
				this.Relations.CollectionChanged += value;
			}
			else
			{
				string s = (string)info.GetValue("XmlSchema", typeof(string));
				if (base.DetermineSchemaSerializationMode(info, context) == SchemaSerializationMode.IncludeSchema)
				{
					DataSet dataSet = new DataSet();
					dataSet.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(s)));
					if (dataSet.Tables["HL_Advertisement1"] != null)
					{
						base.Tables.Add(new S_Ad.HL_Advertisement1DataTable(dataSet.Tables["HL_Advertisement1"]));
					}
					base.DataSetName = dataSet.DataSetName;
					base.Prefix = dataSet.Prefix;
					base.Namespace = dataSet.Namespace;
					base.Locale = dataSet.Locale;
					base.CaseSensitive = dataSet.CaseSensitive;
					base.EnforceConstraints = dataSet.EnforceConstraints;
					base.Merge(dataSet, false, MissingSchemaAction.Add);
					this.InitVars();
				}
				else
				{
					base.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(s)));
				}
				base.GetSerializationData(info, context);
				CollectionChangeEventHandler value2 = new CollectionChangeEventHandler(this.SchemaChanged);
				base.Tables.CollectionChanged += value2;
				this.Relations.CollectionChanged += value2;
			}
		}
		[System.Diagnostics.DebuggerNonUserCode]
		protected override void InitializeDerivedDataSet()
		{
			base.BeginInit();
			this.InitClass();
			base.EndInit();
		}
		[System.Diagnostics.DebuggerNonUserCode]
		public override DataSet Clone()
		{
			S_Ad s_Ad = (S_Ad)base.Clone();
			s_Ad.InitVars();
			s_Ad.SchemaSerializationMode = this.SchemaSerializationMode;
			return s_Ad;
		}
		[System.Diagnostics.DebuggerNonUserCode]
		protected override bool ShouldSerializeTables()
		{
			return false;
		}
		[System.Diagnostics.DebuggerNonUserCode]
		protected override bool ShouldSerializeRelations()
		{
			return false;
		}
		[System.Diagnostics.DebuggerNonUserCode]
		protected override void ReadXmlSerializable(System.Xml.XmlReader reader)
		{
			if (base.DetermineSchemaSerializationMode(reader) == SchemaSerializationMode.IncludeSchema)
			{
				this.Reset();
				DataSet dataSet = new DataSet();
				dataSet.ReadXml(reader);
				if (dataSet.Tables["HL_Advertisement1"] != null)
				{
					base.Tables.Add(new S_Ad.HL_Advertisement1DataTable(dataSet.Tables["HL_Advertisement1"]));
				}
				base.DataSetName = dataSet.DataSetName;
				base.Prefix = dataSet.Prefix;
				base.Namespace = dataSet.Namespace;
				base.Locale = dataSet.Locale;
				base.CaseSensitive = dataSet.CaseSensitive;
				base.EnforceConstraints = dataSet.EnforceConstraints;
				base.Merge(dataSet, false, MissingSchemaAction.Add);
				this.InitVars();
			}
			else
			{
				base.ReadXml(reader);
				this.InitVars();
			}
		}
		[System.Diagnostics.DebuggerNonUserCode]
		protected override System.Xml.Schema.XmlSchema GetSchemaSerializable()
		{
			System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();
			base.WriteXmlSchema(new System.Xml.XmlTextWriter(memoryStream, null));
			memoryStream.Position = 0L;
			return System.Xml.Schema.XmlSchema.Read(new System.Xml.XmlTextReader(memoryStream), null);
		}
		[System.Diagnostics.DebuggerNonUserCode]
		internal void InitVars()
		{
			this.InitVars(true);
		}
		[System.Diagnostics.DebuggerNonUserCode]
		internal void InitVars(bool initTable)
		{
			this.tableHL_Advertisement1 = (S_Ad.HL_Advertisement1DataTable)base.Tables["HL_Advertisement1"];
			if (initTable)
			{
				if (this.tableHL_Advertisement1 != null)
				{
					this.tableHL_Advertisement1.InitVars();
				}
			}
		}
		[System.Diagnostics.DebuggerNonUserCode]
		private void InitClass()
		{
			base.DataSetName = "S_Ad";
			base.Prefix = "";
			base.Namespace = "http://tempuri.org/S_Ad.xsd";
			base.EnforceConstraints = true;
			this.SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
			this.tableHL_Advertisement1 = new S_Ad.HL_Advertisement1DataTable();
			base.Tables.Add(this.tableHL_Advertisement1);
		}
		[System.Diagnostics.DebuggerNonUserCode]
		private bool ShouldSerializeHL_Advertisement1()
		{
			return false;
		}
		[System.Diagnostics.DebuggerNonUserCode]
		private void SchemaChanged(object sender, CollectionChangeEventArgs e)
		{
			if (e.Action == CollectionChangeAction.Remove)
			{
				this.InitVars();
			}
		}
		[System.Diagnostics.DebuggerNonUserCode]
		public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs)
		{
			S_Ad s_Ad = new S_Ad();
			System.Xml.Schema.XmlSchemaComplexType xmlSchemaComplexType = new System.Xml.Schema.XmlSchemaComplexType();
			System.Xml.Schema.XmlSchemaSequence xmlSchemaSequence = new System.Xml.Schema.XmlSchemaSequence();
			xs.Add(s_Ad.GetSchemaSerializable());
			System.Xml.Schema.XmlSchemaAny xmlSchemaAny = new System.Xml.Schema.XmlSchemaAny();
			xmlSchemaAny.Namespace = s_Ad.Namespace;
			xmlSchemaSequence.Items.Add(xmlSchemaAny);
			xmlSchemaComplexType.Particle = xmlSchemaSequence;
			return xmlSchemaComplexType;
		}
	}
}
